*** Settings ***
Documentation  用户相关操作
Library    SeleniumLibrary


*** keywords ***
#用户可以自定义关键字
点击发布话题
    Click Element   xpath://*[@id="create_topic_btn"]
用户发布话题，标题和内容分别为
    [Arguments]    ${title}     ${content}
    Click Element   //*[@id="tab-value"]
    Click Element   //*[@value="share"]
    Input Text    //*[@id="title"]     ${title}
    Click Element   xpath://*[@class="CodeMirror-scroll"]
    Press Keys      xpath://*[@class="CodeMirror-scroll"]   ${content}
    Click Element   xpath://*[@type="submit"]
    ${currentUrl}   Log Location
    [Return]    ${currentUrl}                      #返回值将当前的url地址返回
